Added function to set the file for the database