Added use statement for PAPS schema.
Connect to the db and get the user and algorithm ids.
Added a short TODO list in comments.