Database updating methodes