- Put all DB functions in database.js - Rewrite DB functions to handle mongo logic and return results - API routes must make use of DB functions, and not handle Mongo logic themselves - Make API calls from client (front-end) -