got rid of unused routes
more refactoring
delete database