update database structure and accompanying calls