Added currently working DB functions

Changed id for datepicker so that db works
NOT WORKING:
-pulldata() not working
-clicking on priority does not set it
-cannot set course (reverted?)
-cannot set category (reverted?)