cleaned database connect