Bug Fixes, and updated the install SQL