update db, minor fix