Fix PDO SQL function, updated warnings in tasks