Integration with the database, plus spring config