Added Log to Database