resolved stmt work, added sample sql database structure