Added DB hooks and add commands to dictionary