created connection with db