Read folder and collect data in local sqlite3 database

def folder2db(folder_name, debug, energy_limit, skip_folders,
              goto_reaction):
    """Read folder and collect data in local sqlite3 database"""

    folder_name = folder_name.rstrip('/')
    skip = []
    for s in skip_folders.split(', '):
        for sk in s.split(','):
            skip.append(sk)
    pub_id = _folder2db.main(folder_name, debug, energy_limit,
                             skip, goto_reaction)
    if pub_id:
        print('')
        print('')
        print('Ready to release the data?')
        print(
            "  Send it to the Catalysis-Hub server with 'cathub db2server {folder_name}/{pub_id}.db'.".format(**locals()))
        print("  Then log in at www.catalysis-hub.org/upload/ to verify and release. ")