Added support for running jobs and limited the number of running jobs of the same name to 1. Also updated the SQL schema.