def closeDBConnection(connection, cursor):
    """
    Closes a connection to a DB given the connection and cursor objects.

    :param connection: database connection
    :param cursor: database cursor object
    :type connection: psycopg2.extensions.connection
    :type cursor: psycopg2.extras.DictCursor
    """
    cursor.close()
    connection.close()
    return
