setting up databasery