Make first tests

Database works partially, time to done it.