[IMP] Move db_handler.py to tools and fix