Improving the CRUD separating the views and fixed some mistakes in the
database connextion.