def export_obo(path_to_file, connection=None):
db = DbManager(connection)<EOL>db.export_obo(path_to_export_file=path_to_file)<EOL>db.session.close()<EOL>
export database to obo file

    :param path_to_file: path to export file
    :param connection: connection string (optional)
    :return: