removing silly bug and updating database