Got the log in sql sorted out.