removed buugs with writing to database and readind from dropbox