Year Function Sqlite3 Python Mysqli Query