fixed the program adding database/name logging