db and logs