movie library in postgresql and ruby