add lib for postgres & load function
fix constructor - add load function
Merge branch 'origin/retrieve'