fix databse file isssue