add some database function for video