added command line interface for database generation now working