Upgraded database context in spring configuration