Moved db_pull.rb file to the lib folder