most postgres work - probably improper logic for hasOne, hasMany - considering adding to the models.js file for easier adjustments