some random debugging stuff in while i attempt to get the db in a fit state