some modification on user module and added database.file