added embedding code
added pg library