expected dictionary object

expected dictionary object Returning database object