Implemented DB log instead of file log