Renamed packages to standard java, fixed spelling in SQL.existenceQuery
Centralised more database connection handling, while retaining some access. First iteration, new connection for each query but allowing for connection pooling later on.