Switched from using db select to selectRow when appropriate