fixed updating the old database