Database hookup for the file window begins here...