Replace hibernate

Now using a pure SQL implementation for talking to the database instead of JPA/Hibernate.
- Includes endpoints now returning JSON errors for 4xx and 5xx errors