First part of the sqlite backend done