Refactored.
Added sql methods to efficient delete and add genes.