If the battery light isnt on chances are alternator is fine, when you have the battery disconnected the KAM (keep alive memory) is reset in the ecu. If the throttle body is dirty this can cause stalling as the ecu needs a clean throttle body to re learn its idle strategies etc.. Try giving it a clean and resetting the kam again. May or may not fix it