Removed database writing - writes to file only