changes to datbaase init, probably