Now runs with the database code