cleanup
refactoring
removed select_db method, not pep compilant and not very useful
refactoring
refactoring