Write parsed info to database