update db to make it more robust