Moved database configuration to spring xml