Fix initial database creation