Some DB fixes

Fixed the default limits on all procedures. Fixed error in getUserTasks
where strict mode would not work. Shortened some procedures