Updated install script, add sql methods.