Cleared migrations and sorted out database issues