upgrade db tables