migrate tests to postgresql