Created database wrapper and tests