moved fbapi funcions to pgsql_fb.py class fb_api