introduced a custom select function in db class
introducing a first version of an update function in the db class