[db/__init__]Fix obj-typo.
Fix bug in timeout