Moved the moment of querying the database into the getObject() phase instead of bind() phase.