Fixed te data not being inserted into DB.