Executing SQL statement
Learned synchronized keyword for maintaining atomicity