nosetests for db functionality Django backend