added defaults / properties from schema
moved schema check to resolve-links
added get-next-id for auto-increment
curry for request-data
return empty array if no results, throw error if id not found