make the database reference for orders