Made database wrapper