working example
removed unused code
added swiper to database page
added pagination controls