fixed table name in activity storing function