Moved DB creation into tests