added support for multiple db files