Time series first Round with sqlite3 query