wrapper for logs, fixes in db and rename