using external db, mysql