Do not transfer current month/day as parameters from python, SQLite can do it using its own functions. cursor = conn.execute("""SELECT family,f_name FROM birthday WHERE b_month = STRFTIME('%m','now') AND b_day = STRFTIME('%d','now')"""