add support for database file as a parameter