removing test code, adding in database name into script into comments