Outsourced db and crud