Fixed database creating