Fix DB integration test errors

see 46
using sudo to overcome rights problem