Security Change: Select Prepated

Change Select to Prepared statement for more security.