baseline.c: checking for db_set_* return values

checking for return values of db_set_* functions