fixed bs tab error & unique database