converted frontend to angular js, and Knex as ORM