ticket:9 fix db records counting
Merge branch 't9_django_command'