postgres populate and query with and without django