Resolved problem when creating database