moved the creation part into the db abstraction