[scripts] allow running against basic DB from source.
get_classpath_from_maven(database) now does not alter the project name
before giving it to Maven. main() now calculates the db_dir with core
and uses the core project for Maven, otherwise things work as they did
before.
fixes #336