Correctly prepare the database before running integration tests