Change way to connect database