Use entities from the DB instead of JS object