database#create functions properly again