Fixed update function to virtual fields to actual updateing the databases