Replace ruby's code into lib directory.
Replace ruby's code as module to lib directory.
Remove unused files.
Move module to correct position.
Remove sql code from vim script.