Created db module and get_latest_data function

just return the `cursor.fetchall()` result?