sorted models, filled databases in tests

executing "./manage.py tests" will run all tests in the tests.py file.
currently there are only commands to fill the databases with values.
these test values are deleted when the tests finish. also, the models
have been sorted to deal with dependencies.