public void updateServer(Connection connection,
			java.sql.Timestamp time_stamp, String local_path) {

		try {

			Statement stmt = connection.createStatement();

			if (inServerDB(connection, local_path))// already exists so should
													// update
			{
				PreparedStatement ps = connection
						.prepareStatement("UPDATE db_like_files SET time_stamp =?, path_local=?, path_server=?, user_id=? WHERE path_local=?");
				ps.setTimestamp(1, time_stamp);
				ps.setString(2, local_path);
				ps.setString(3, local_path);
				ps.setInt(4, 3);
				ps.setString(5, local_path);
				ps.executeUpdate();
			} else {
				PreparedStatement ps = connection
						.prepareStatement("INSERT INTO db_like_files (time_stamp, path_local, path_server, user_id) VALUES (?, ?, ?, ?)");
				ps.setTimestamp(1, time_stamp);
				ps.setString(2, local_path);
				ps.setString(3, local_path);
				ps.setInt(4, 3);
				ps.executeUpdate();
			}

			connection.commit();
			stmt.close();
			// Provide a message when processing is complete.
			System.out.println("Inserted Values.");
		} catch (Exception e) {
			e.printStackTrace();
		}
	}