create db.py, redis handle