simple program to update database