DB update methods fixed

fixed some small mistakes in the methods for updating the files