def database_job(pkg_id, pkg_title):
 pkg_dict = call_action(u'package_show', id=pkg_id)
 pkg_dict[u'title'] += pkg_title
 pkg_dict = call_action(u'package_update', **pkg_dict)

def database_job ( pkg_id , pkg_title ) : pkg_dict = call_action ( u'package_show' , id = pkg_id ) pkg_dict [ u'title' ] += pkg_title pkg_dict = call_action ( u'package_update' , ** pkg_dict )
a background job that uses the postgresql database .