database create/load bugfix