Postgresql Get Function Javascript Practice For Beginner