adding draft api calls to server js and modifying job schema