fixes on database creation