gem file modifications for sql & pg