well I got the db_log working so hopefully I will get this thing sorted out quickly but I need to take a break now so commiting this so in case of fire I have backup