More integrations between front and back end.

Getting rid of hardcoded strings, the back-end now queries the database for execution of the various tasks.