added database connection for the tabbing system