implemented mapping create, update in route methods to post, put respectively
fixed forward-references in migrations