Hi,
For playing videos and showing image galleries i like to use
multibox[
^]. Author home page is
here[
^].
You can also try
divbox[
^].
One more thing. If I were you I wouldn't keep video files in database. Database in my case would hold some metadata for video (resolution, category, path to the video file on drive, name, type...).