Update some database routines