added db setup function for empty db