Postgresql Get Function Javascript Practice Programs