database driver now in main function