Fixed some updating logic so we don't overwrite settings to options. Updated db functions to prepend ->prefix to table names