Implement models with anorm and refactor