added database activity api; select statements are now done in parallel