Added structure for file support

- Support for databases on external files added. Currently only
provided as an input argument.