update readme, and optimize db query on update