Change database for tests
Fix update fun, now pass menager id