improve scala indexer script
cleanup build file, add config dependency
a database can contain many named and versioned projects