Add gallery views and database input script