DB wrapper class implemented initially