flask implementation of activity db at house of finance