db and files must be separated