use realpath for db and silence pesky warnings.