No idea on the ajax slideshow side, but I've never had much joy with storing images in the database. An option which has worked well for me in the past is to store the image on your sever, and in the database store the file name of the image.
You grab the data in the same way, is just that you're throwing less data from the database to your server. you display your image using the file name. hope this helps some. Phil.
