Fixed update issue. Created helper methods and postgres database.
Working app. Could remove duplication in api_call function by moving it out in module