Replace {boost -> std}::thread, {boost -> std}::bind
Clean up db interface
Fix setting NULL as db column value