Moved all database stuff inside DBHandler, and some pylint cleanups

Change-Id: I593dad98cb862f886bd9a1fb758630aa1831d9d3
5 files changed