There is no way for a web server to generate a listing with thumbnails, you will need to either pre-process the list before putting it on your webserver, or you need to use a server side scripting language, such as PHP or Perl to generate the output for you in whatever manner you choose.
As for a good backend, you need to define that better. MySQL database is a good backend, so is Sqlite. Specify what you want better.