Fixed bug that prevented directories from being specified in the database file name.