working version, but not valid DB