NOT working version of the complete DB approach.