Fixed database connection and jpa repository config