moved skipping outside of the main combine_database funciton