OWTF 0.40 'Summer Storm III': Fixed #94 and cleaned up db.py