Change parameter type of orderBy

- Change orderBy parameter on
checkDatabase:table:hasRows:orderBy:error: from NSString
to NSArray.