Fixed maven dependencies and also added spring bean to communicate to
database