added create code for database