cursors + triggers completed, frontend fixes to be made