bluetooth connection script adjustments
fix: rebuild database would break in some situations