Create db_v01_details

some updated SQL. Putting it into practice. When done a file with the final code will be added