open DB after css loaded