Database in spring (jdbc, hibernate)