refactored db create and test to be in db_helper.php