Database Mapping for JavaScript