before adding the db