Utils for DB unit testing