Add a debug message printing for SQL errors
Add page_size parameter (allows to declare how many messages should be deleted at once)
Use locks_leader in offline message purger
Add info messages