Rewrite of simpleDbLayer done. Testing is next