Begin using database
Use ActiveRecord instead of PG and User can create new gallery