Working with sqlite and referee