database creation fix