apply database updates