fixed bug in database wrong folder to load file