Issue 487 db

This is ready for initial review. Thanks. 
OK so what's the resolution? Add a boolean to the table (active)?