ensure db directory exists