Now received data is checked for sanity and insert to db