Write to file, future to DB