Working with DB. Update core files