refactoring of code. creating own packages for create stuff and retrieval stuff