fixed debug text
migrated over to prepared statements