Improve support for .db files