Added necessary libraries and created a database controller file to provide database access