Look here : Database access from Self host server (linux laptop) - #3
I need probably setup postgres for ruby on rails :