'Record last propersearch in DB
:param when: When was the last proper search'

@staticmethod
def _set_lastProperSearch(when):

    logger.log((u'Setting    the    last    Proper    search    in    the    DB    to    ' + str(when)), logger.DEBUG)
    main_db_con = db.DBConnection()
    sql_results = main_db_con.select(u'SELECT    last_proper_search    FROM    info')
    if (not sql_results):
        main_db_con.action(u'INSERT    INTO    info    (last_backlog,    last_indexer,    last_proper_search)    VALUES    (?,?,?)', [0, 0, str(when)])
    else:
        main_db_con.action((u'UPDATE    info    SET    last_proper_search=' + str(when)))
