Fix bug where LIMIT keyword used in Records class causes exception

This issue is caused because Apache Derby does not support LIMIT keyword.