adding debugger
changing to a leaner database structure