adding db definitions. Testing db read and write