added opt to use different db file