Step 6 using the database