updated activities and db access