update DB functions
added under lib