Correction to database cause of primitive type to  database