- common functions used while working with database added