database operations - step 2