Back-End Engineer (Java Spring Boot): optimize a library database for scalability