Created db.inc file to manage all database calls.