Prepares db data
Fix