Database connection and functions 

Entire functionalities are integrated through this file.