Created db module and get_latest_data function

timestamp -> dump_time ? According to DB schema #16