Exposes database ORM to the Javascript side