Adding database commands to delete from the log tables and get the current database size.