Django app to write logs to database