Stricter handling for better edge cases
Start porting db_hook to DBHelper
Start porting db_hook to DBHelper