Added a createDatabase function in db.c.