refactor model module into database and web service response objects