adding database creation code