Added some basic logging
Parameterized SQL