working piece of code with sqlite and it works on mono