db fix and styles