db Error Handling
Signed-off-by: rafiqmohammad <rafiq.mohammad@whiteskylabs.com>