modified ip extract rake task to save to database