fix prepared statements structure