added database class to handle database connection and query statements
replaced seperate lat long values by LatLongPosition; fixed getAreaBox calclualtions