Finish order db and checkout functionality.