How to make APIs with Spring Boot: read from a MySQL database