Update db.py

Added return to Db statements to improve clarity.