Database connection set up using freesqldatabase