fixed database issues with trail and made styling changes