Added the database fnctn in settings