"Which practice is the best for database connection? (PHP, etc)" . . . .