adding db handler