refactored mysql fixtures into proper factories

moved into factories submodule

modified tests
added missing license comment
fixed docstrings
Merge pull request #24 from fizyk/factories

refactored mysql fixtures into proper factories