Extracted contact class and JDBC code into separate files.