Added Database creation function