Added new boolean attributes.
Added typecasting for SQL insertion and update.