Have updated to connecting database