Store e run query on database to help system manager of a Django website