Error rectified. Hardcoded the name of the database