Rails. Postgres. Application to host media online via upload & APIs