fixing info for db