making and connecting database