move heplers for sinatra restful api into helpers module