package structure changed and added connection to db wrapper class