Modified return type of generic database methods (getAllRows,
createObjectByTable)