Year Function Sqlite3 Python Query Database Php