Add EF auto update DB function.