Added the posibility to manually set the database.